import { http } from '@/utils/http.ts'

// 获取微信支付参数
export const getWxPayMinipayApi = (data:{ orderId: string }) => {
  return http<WechatMiniprogram.RequestPaymentOption>({
    url: '/order/detail',
    method: 'GET',
    data,
  })
}

// 模拟支付
export const mockPayApi = (data:{ orderId: string }) => {
  return http<WechatMiniprogram.RequestPaymentOption>({
    url: '/pay/mock',
    method: 'GET',
    data,
  })
}
